package constybxb

import "fmt"

func TestConst() {
	// 常量的定义
	const PI float32 = 3.1415926
	const E float32 = 2.7182818

	const DB_PORT = 3306

	const (
		DBDNS      = "root:root@tcp(127.0.0.1:3308)/test?charset=utf8mb4&parseTime=True&loc=Local"
		DBNAME     = "test"
		DBUSERNAME = "root"
		DBPASSWORD = "root"
	)
	fmt.Println(PI, E)
	fmt.Println(DBDNS)
	fmt.Println(DBNAME)
	fmt.Println(DBUSERNAME)
	fmt.Println(DBPASSWORD)
	fmt.Println(DB_PORT)
}
